class UDP_CONST:
    CLOSE = 1  # 关闭
    SEND = 2  # 发送
    RECEIVE = 3  # 接收

class WSS_MESSAGE_CONST:
    # 消息类型
    TEXT = 1
    BYTEARRAY = 2
    CLOSE = 8
    PING = 9
    PONG = 10
    INVALID = -1

class WSS_CONST:
    CONNECT_SUCCESS = 1  # 连接成功
    SEND_DATA = 2  # 发送数据
    RECEIVED = 3  # 收到数据
    CLOSE_CONNECT = 4  # 断开连接


class TCP_CONST:
    CONNECT_SUCCESS = 0  # 连接成功
    SEND_DATA = 1  # 发送数据
    RECEIVED = 2  # 收到数据
    CLOSE_CONNECT = 3  # 断开连接
    BEFORE_CONNECT = 4  # 即将连接

class HTTP_CONST:
    SEND = 1  # 请求
    RESPONSE = 2  # 响应
    ERROR = 3  # 错误
